package com.itnoob.domain;

import java.util.List;

// 请求类，用于模拟请求信息，包括请求路径、请求方法、请求需要的角色列表和资源列表
public class Request {
    private String path;
    private String method;
    private List<String> requiredRoles;
    private List<String> requiredResources;

    public Request(String path, String method, List<String> requiredRoles, List<String> requiredResources) {
        this.path = path;
        this.method = method;
        this.requiredRoles = requiredRoles;
        this.requiredResources = requiredResources;
    }

    public String getPath() {
        return path;
    }

    public String getMethod() {
        return method;
    }

    public List<String> getRequiredRoles() {
        return requiredRoles;
    }
    public List<String> getRequiredResources() {
        return requiredResources;
    }
}